package com.z2.components.orm.separate;

/**
 * Created by cdyizuoming on 2017/3/16.
 */
public class DataSourceContext {

    public static final ThreadLocal<String> holder = new ThreadLocal<String>();

    public static void setDataSource(String dsKey) {
        holder.set(dsKey);
    }
    public static String getDataSource() {
        return holder.get();
    }

    public static void dataSourceRemove() {
        holder.remove();
    }

}
